﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Collections.Generic;
using log4net;
using log4net.Config;
using Business_Object;
using ServicesComponent.Repositories;
using Business_Objects;


    public partial class _Default : System.Web.UI.Page
    {
        private IBaoAnRepository _BaoAnRepository;
        
        protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack==false)
        {
            _BaoAnRepository = FactoryServices.GetServicesBaoAn(_BaoAnRepository);
          
        }
        //Data test ()khi làm sẽ lấy data = _BaoAnRepository.GetList();
        
        rptA.DataSource = Nguoi.GetALL();
       rptA.DataBind();
        CollectionPager1.DataSource = Nguoi.GetALL();
       CollectionPager1.BindToControl = rptA;
        rptA.DataSource = CollectionPager1.DataSourcePaged;   
    }
    }
